package com.gln.bloger.service;

import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.User;

public interface UserService {
	/**
	 * save or update user
	 * @param user
	 * @throws BlogerException
	 */
	public void saveOrUpdateUser(User user) throws BlogerException;
	
	/**
	 * get user by mail
	 * @param mail
	 * @return
	 * @throws BlogerException
	 */
	public User getUser(String mail) throws BlogerException;
	/**
	 * get user by id
	 * @param id
	 * @return
	 * @throws BlogerException
	 */
	public User getUserById(String id) throws BlogerException;
}
